home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / cli / BinHex.lha / Source / Include / SDI_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-07-04  |  2.5 KB  |  75 lines

  1. #ifndef SDI_PROTOS_H
  2. #define SDI_PROTOS_H
  3.  
  4. /* Includeheader
  5.  
  6.     Name:        SDI_protos
  7.     Versionstring:    $VER: SDI_protos.h 1.14 (17.03.97)
  8.     Author:        SDI
  9.     Distribution:    PD
  10.     Description:    prototypes of SDI_functions
  11.  
  12.  1.0    : created out of ...SDI.h files
  13.  1.1    : changed protos, added stuff
  14.  1.4    : PutNum new, description changed
  15.     / * - line: description
  16.     / P - line: values and sense of the parameters
  17.     / R - line: return values
  18.  1.5    : GetLength now ULONG
  19.  1.6    : added FileReq
  20.  1.7    : removed SDI_defines call
  21.  1.8   03.10.95 : changed Ausgabe, added BreakPoint
  22.  1.9   15.10.95 : variable types now like in exec/types.h
  23.  1.10  14.01.96 : BreakPoint now void
  24.  1.11  04.02.96 : GetPufferSize new
  25.  1.12  13.04.96 : version string moved into header
  26.  1.13  20.07.96 : removed strcmpNS, now in SDI_ASM_STD_protos.h
  27.  1.14  17.03.97 : added GetDate, renamed functions, removed functions
  28. */
  29.  
  30. #include <exec/types.h>
  31.  
  32. ULONG SDI_Buffer(struct SDI_InOut *, struct SDI_InOut *);
  33.     /* allocates buffer for Source and destination
  34.     /P pointer to IO handles for input and output
  35.     /R 0 on error, else buffersize of both buffers */
  36. void SDI_FillBuf(struct SDI_InOut *);
  37.         /* reads file into buffer
  38.     /P pointer to IO handle of input file */
  39. void SDI_FreeBuf(struct SDI_InOut *);
  40.     /* calls FreeMem for buffers
  41.     /P pointer to IO handle */
  42. ULONG SDI_GetBuffer(struct SDI_InOut *);
  43.     /* allocates buffer for IO handle
  44.     /P pointer to IO handle
  45.     /R buffersize or 0 on error */
  46. void  SDI_GetBufferSize(struct SDI_InOut *, ULONG);
  47.     /* finds out optimal buffersize
  48.     /P pointer to IO handle, size of file */
  49. ULONG SDI_GetDate(STRPTR);
  50.     /* Prints current date into the string
  51.     /P destination string, at least 13 chars wide
  52.     /R 0 on error */
  53. ULONG SDI_GetLength(ULONG);
  54.     /* gets length of a file
  55.     /P filehandle of the file
  56.     /R file length or 0 on error */
  57. UBYTE SDI_OpenBF(STRPTR, STRPTR, STRPTR, struct SDI_InOut *, struct SDI_InOut *);
  58.     /* opens input, output files and buffers
  59.     /P infile name, outfile name, outfile extension, pointer to input
  60.     /P IO handle, pointer to output IO handle
  61.        when no outfile name:
  62.          outfile name = infile name + extension
  63.        when no outfile name and no extension:
  64.          outfile name = infile name
  65.        when no outfile name, no extension and not enough ram
  66.          outfile name = infile name + '_'
  67.     /R see SDI_OpenBF.c, on error 0 */
  68. void SDI_WriteBuf(struct SDI_InOut *, ULONG);
  69.     /* Writes buffer into file
  70.     /P pointer to SDI io structure of writebuffer,
  71.     /P number of characters which should remain in buffer */
  72.  
  73. #endif /* SDI_PROTOS_H */
  74.  
  75.